# coding=utf-8

import zmq
import time

ctx = zmq.Context.instance()
socket = ctx.socket(zmq.REQ)

socket.connect("tcp://localhost:5555")

socket.send("aaaa")
# time.sleep(2)
data = socket.recv()
print data
socket.close()
ctx.destroy()